package main.java.proxy.jdk_proxy;



/**
 * jdk代理模式
 */
public class Demo {
    public static void main(String[] args) {
        //获取代理对象
        ProxyFactory factory = new ProxyFactory();
        SellTickets proxyObject = factory.getProxyObject();
        proxyObject.sell();
    }
}
